<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/4/23
 * Time: 20:25
 */

namespace common\sources\read\classifyreason;


use common\models\craftsman\ClassifyReason;

class ClassifyReasonAccess implements IClassifyReasonAccess
{
    public function getClassifyReasonByIds($reasion_ids)
    {
        return ClassifyReason::find()
                ->select("id,reason,class_name")
                ->where("id in (".$reasion_ids.")")
                ->orderBy("id desc")
                ->limit("0,3")
                ->asArray()
                ->all();
    }
}